package com.comdefinition.modals

import com.comdefinition.cache.MsgCodeCache
import com.comdefinition.constant.CodeConstant
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked

/**
 * Created by hp4664 on 2017/9/6.
 * 通用返回值
 */
@TypeChecked
@CompileStatic
class BaseRes implements Serializable{
    String resCode
    String resDesc

    String getResDesc() {
        if(!resDesc) return MsgCodeCache.getMessageDesc(resCode)
        else return resDesc
    }

}
